let USER_DATA_PATH = ''

// #ifdef MP-WEIXIN
// @ts-ignore
USER_DATA_PATH = uni.env.USER_DATA_PATH
// #endif

// #ifdef MP-TOUTIAO
// @ts-ignore
USER_DATA_PATH = uni.getEnvInfoSync().common.USER_DATA_PATH
// #endif

const localPath = `${USER_DATA_PATH}/garlic`
let fs: UniApp.FileSystemManager | null = null

// #ifdef MP
// @ts-ignore
fs = uni.getFileSystemManager()
// #endif

export { localPath, fs }
